<?php
/**
 * 站点的广告模型
 */
namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Ad extends Model
{
    protected $fillable = [
        'link', 'title', 'color', 'border_color', 'size', 'flicker', 'user_id', 'site_id', 'show_border'
    ];

    public function site()
    {
        return $this->belongsTo(Site::class);
    }
}
